<?php
class Post extends AppModel
{
	var $name = 'Post';
        var $hasMany = array(
        'Comment' => array(
            'className' => 'Comment',
            'foreignKey' => 'post_id',
            'dependent' => false,
            'conditions' => '',
            'fields' => '',
            'order' => '',
            'limit' => '',
            'offset' => '',
            'exclusive' => '',
            'finderQuery' => '',
            'counterQuery' => ''
        )
    );
        
         var $belongsTo = array(
        'Board' => array(
            'className' => 'Board',
            'foreignKey' => 'board_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        ));
        
        var $actsAs = array('Containable');
        var $hasAndBelongsToMany = array('Tag'=>array('className'=>'Tag'));  
        
	var $validate = array(
		'title' => array(
			'rule' => 'notEmpty'
		),
		'body' => array(
			'rule' => 'notEmpty'
		)
	);
}
?>